package ru.spb.nicetu.schoolproject.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by dchernyshov on 25.04.15.
 */
@Entity
@Table (name = "school_schema.days")
public class DayOfWeek {
    @Id
    @Column (name = "id")
    private int dayId;
    @Column (name = "name")
    private String name;

    public int getDayId() {
        return dayId;
    }

    public void setDayId(int dayId) {
        this.dayId = dayId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name.trim();
    }
}
